import { Link } from "react-router-dom";
import './index.scss'

export default function Tabbar(props) {

    // 获取父组件传递的参数
    // console.log(props.link);
    
    return (
        <div className="tabbar">
            <ul>
                {
                    props.link.map(item => {
                        return (
                            <li key={item.title}><Link  to={item.link}>{item.title}</Link></li>
                        )
                    })
                }
            </ul>
        </div>
    )
}